<?php
include_once($_SERVER['DOCUMENT_ROOT'] . '/mba/models/DonVi.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/mba/controls/CapNhatDonViController.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Thêm đơn vị</title>
        <style type="text/css">
        </style><link href="../css/style.css" rel="stylesheet" type="text/css" />
        <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
        <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    </head>

    <body>
        <div class="bodyStyle">
            <form id="form1" name="themdonvi" method="post" >
                <p>&nbsp;</p>
                <table width="615" border="0" align="center">
                    <tr>
                        <td colspan="2" class="TableHeader">Thêm đơn vị</td>
                    </tr>
                    <tr  class="TableField">
                        <td width="131" class="TableField3" >Mã đơn vị</td>
                        <td width="474" class="TableField3">
                            <input type="text" name="txtmadv" id="txtmadv" size="15"  value="<?php echo $madv; ?>" /> <span class="error">* <?php echo $madvErr; ?></span></td>

                    </tr>
                    <tr>
                        <td class="TableField3">Tên đơn vị</td>
                        <td class="TableField3"><input type="text" name="txttendv" id="txttendv" size="35" value="<?php echo $tendv; ?>"/>  <span class="error">* <?php echo $tendvErr; ?></span> </td>
                    </tr>
                    <tr>
                        <td class="TableField3">Địa chỉ đơn vị</td>
                        <td class="TableField3"><label for="txtlienhedv"></label>
                            <input name="txtdiachidv" type="text" id="textfield" size="35"  value="<?php echo $diachidv; ?>"/></td>
                    </tr>
                    <tr>
                        <td class="TableField3">Thông tin liên hệ</td>
                        <td class="TableField3">
                            <input name="txtlienhedv" type="text" id="textfield3" size="35" value="<?php echo $lienhedv; ?>" /></td>
                    </tr>
                    <tr>
                        <td class="TableField3">Tên tài khoản </td>
                        <td class="TableField3">
                            <input name="txttentk" type="text" id="textfield4" size="35" value="<?php echo $tentk; ?>" /> <span class="error">* <?php echo $tentkErr; ?></span>  </td>
                    </tr>
                    <tr>
                        <td class="TableField3">Mật khẩu</td>
                        <td class="TableField3">
                            <input name="txtmatkhau" type="text" id="textfield5" size="35" value="<?php echo $matkhau; ?>" /> <span class="error">* <?php echo $matkhauErr; ?></span> </td>
                    </tr>
                    <tr>
                        <td class="TableField3">Nhập lại mật khẩu</td>
                        <td class="TableField3">
                            <input name="txtmatkhau2" type="text" id="textfield6" size="35" value="<?php echo $matkhau2; ?>" /> <span class="error">* <?php echo $matkhau2Err; ?></span> </td>
                    </tr>
                    <tr>
                        <td class="TableField3">Quyền</td>
                        <td class="TableField3">
                            <select name="txtquyen" id="txtquyen" >
                                <option value="" ></option>
                                <option value="1" <?php if ($quyen == "1") echo "selected"; ?> >Phòng KH-KT (1)</option>
                                <option value="2" <?php if ($quyen == "2") echo "selected"; ?> >Đơn vị thành viên (2)</option>
                                <option value="3" <?php if ($quyen == "3") echo "selected"; ?> >Đơn vị nhập số liệu (3)</option>
                            </select> <span class="error">* <?php echo $quyenErr; ?></span> </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="btn"><input type="submit" name="btnthemdv2" id="btnthemdv2" value="Thêm đơn vị" />
                            <input type="submit" name="btnreset" id="btnreset" value="Xóa dử liệu nhập vào" /></td>
                    </tr>
                </table>
            </form>
        </div>
    </body>
</html>
